package com.el.test;

import com.el.event.Event;
import com.el.event.EventFactory;

public class FakeProcessor {
    
    private FakeProcessor2 proc2;

    public void setProc2(FakeProcessor2 proc2) {
        this.proc2 = proc2;
    }

    private static final Event logEvent = EventFactory.getEvent("fakeProcessor:process");
    
    public void process(int x, int y) {
    
        try {
        logEvent.logStart();
        
        proc2.process2(x);
        
        } catch (Throwable t){
            // do nothing...
            System.out.println("do nothing...");
            logEvent.logException(t);
        } finally {
            logEvent.logEnd();
        }
        
    }
}
